﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:MvvmFx_Common_ViewModels_Commands="clr-namespace:MvvmFx.Common.ViewModels.Commands;assembly=MvvmFx.Common" x:Class="MvvmFx.Samples.HowTos.CommandHandlers.View.SubView"
    >
	<UserControl.Resources>
		<Storyboard x:Name="TypedCommandHandlerStoryboard">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)">
				<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="180"/>
				<EasingDoubleKeyFrame KeyTime="00:00:01" Value="360"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<i:Interaction.Behaviors>
		<MvvmFx_Common_ViewModels_Commands:StoryboardCommandHandlerBehavior Storyboard="TypedCommandHandlerStoryboard"/>
	</i:Interaction.Behaviors>
    <Grid x:Name="LayoutRoot" Background="White">

    	<Border x:Name="border" HorizontalAlignment="Right" Width="150" Background="#FFFFC844" BorderBrush="Black" BorderThickness="1" CornerRadius="4" Height="30">
    		<Border.Projection>
    			<PlaneProjection/>
    		</Border.Projection>
    		<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="Typed Command Handler" TextWrapping="Wrap"/>
    	</Border>

    </Grid>
</UserControl>
